<?php 


//var_dump($_POST);
// array (size=1)
//   'msgid' => string '13' (length=2)


$id = $_POST['msgid'];

$db = include './db.php';

array_splice($db,$id,1);

//var_dump($db);exit;  此时是把$db的其中一项拿到del脚本这里来删除，操作完要把$db写回去
$str = var_export($db,true);

$str = "<?php return ".$str." ?>";

file_put_contents('./db.php', $str);

$info = array(
		'error'=>0,
		'info'=>'删除成功',
	);

echo json_encode($info);













 ?>